package cn.learn.wxlogin;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;


@Controller
public class toWxlogin {

    @RequestMapping(value = "/weixinlogin", name = "用户微信登录")
    public String weixinlogin(String code) {
        System.out.println("执行了");
        // 重定向到自定义微信登录请求
        return "redirect:/wx/login.do?code=" + code;
    }

}
